<template>
	<el-main class="nopadding" style="font-size: 16px">
		<div v-for="(item,index) in form.list" :key="index" style="margin: 15px">
			<div>
				{{ index + 1 }}、{{ item.title }}
			</div>
			<el-radio-group v-if="item.optType=='0'" v-model="form.list[index].selected">
					<el-radio v-for="(childItem,i) in item.childItem" :label="childItem.childId" :key="i">{{ childItem.childTitle }}</el-radio>
			</el-radio-group>
			<el-checkbox-group v-if="item.optType=='1'" v-model="form.list[index].selected">
				<el-checkbox v-for="(childItem,i) in item.childItem" :label="childItem.childId" :key="i">{{ childItem.childTitle }}</el-checkbox>
			</el-checkbox-group>
		</div>
	</el-main>
</template>
<script>
export default {
	name: 'Vote Item Record',
	props: {
		listData: {type: Array}
	},
	data() {
		return {
			selected:[
			],
			form: {
				list: this.listData,
			},
		}
	},
	mounted() {
	},
	methods: {

	}
}
</script>
